﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace MCP.Data.CF_Entities
{
	public class Item
	{
		[Key]
		[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		public int ID { get; set; }
        
		[MaxLength(100)]
		public string Name { get; set; }

		public double? UnitPrice { get; set; }
		public double? Amount { get; set; }
		public double? Price { get; set; }

		public int CheckID { get; set; }
		[ForeignKey("CheckID")]
		public virtual Check Check { get; set; }

		public virtual ICollection<Category> Categories { get; set; }
	}
}